package com.gzsxy.esjy.sign.enums;

import lombok.Getter;

/**
 * @author zhangxiaolong
 * @since 2022/7/15
 */
@Getter
public enum SignTypeEnum {
    /**
     *
     */
    ANDROID(0, "安卓板"),
    SCREEN(1, "投屏板");
    private final int type;
    private final String name;

    SignTypeEnum(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public static SignTypeEnum getType(int type){
        for (SignTypeEnum value : SignTypeEnum.values()) {
            if (value.type == type){
                return value;
            }
        }

        return null;
    }
}
